LIB2ADD=$(srcdir)/config/nvptx/malloc.asm \
	$(srcdir)/config/nvptx/free.asm \
	$(srcdir)/config/nvptx/realloc.c

LIB2ADDEH=
LIB2FUNCS_EXCLUDE=__main

crt0.o: $(srcdir)/config/nvptx/crt0.s
	cp $< $@

# Prevent building "advanced" stuff (for example, gcov support).  We don't
# support it, and it may cause the build to fail, because of alloca usage, for
# example.
INHIBIT_LIBC_CFLAGS = -Dinhibit_libc
